home *** CD-ROM | disk | FTP | other *** search
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:msxsl="urn:schemas-microsoft-com:xslt"
- xmlns:saxon="http://icl.com/saxon"
- xmlns:str-foldl-func="f:str-foldl-func"
- exclude-result-prefixes="xsl str-foldl-func"
- >
-
- <xsl:import href="str-foldl.xsl"/>
-
- <str-foldl-func:str-foldl-func/>
- <xsl:variable name="vFoldlFun" select="document('')/*/str-foldl-func:*[1]"/>
- <xsl:output encoding="UTF-8" omit-xml-declaration="yes"/>
-
- <xsl:template match="/">
-
- <xsl:call-template name="str-foldl">
- <xsl:with-param name="pFunc" select="$vFoldlFun"/>
- <xsl:with-param name="pStr" select="string(/*/*)"/>
- <xsl:with-param name="pA0" select="0"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="str-foldl-func:*">
- <xsl:param name="arg1" select="0"/>
- <xsl:param name="arg2" select="0"/>
-
- <xsl:value-of select="$arg1 + $arg2"/>
- </xsl:template>
-
- </xsl:stylesheet>
-
-